// 把key保存到一个变量里
const TOKEN_KEY = 'hmmm-8'

// 保存token
export const setToken = (token) => {
  window.localStorage.setItem(TOKEN_KEY, token)
}

// 获取token
export const getToken = () => {
  return window.localStorage.getItem(TOKEN_KEY)
}

// 删除token
export const delToken = () => {
  window.localStorage.removeItem(TOKEN_KEY)
}
